// dlg.txt

begintalkscript;

variables;


begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(30,1) == 0;
	question = "special";
	text1 = "You enter the Okavano swamp. Eastern and western Terrestia are connected by two narrow, hostile stretches of terrain. The southern stretch is blocked by the Grayghost Mountains. The northern bridge features this huge, miserable fen.";
	text2 = "This is currently the heavily defended no man's land between rebel and Shaper lands. It shows the signs of constant skirmishing. Many bodies, human, servile and creation, have already reached their final resting place in the soft muck.";
	text3 = "Now, however, this region is surprisingly quiet. You can see traces of battles and the remains of recently detonated minefields. However, the main forces of the rebel and loyalist armies are busy elsewhere.";
	text4 = "Major campaigns against the Mera-Tev are not taking place. This is still a very dangerous area, though. Uncontested land like this naturally attracts rogues and brigands.";
	action = SET_SDF 30 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(31,1) == 0;
	question = "special";
	text1 = "There used to be several settlements out here in the swamp, until they were abandoned, smashed in some skirmish or other, and began to sink into the muck.";
	text2 = "Since then, the swamp dwellers have been replaced by more hostile creatures. Some of them live behind the crude palisade to the northwest.";
	text3 = "A pack of rogue battle alphas have torn down several buildings and used the materials to make defenses for their little colony. Battle alphas are simple creatures, but they are intelligent enough to form their own little tribes.";
	action = SET_SDF 31 1 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";




begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Snarling Alpha";
	text1 = "The rogue battle alphas in this region have built a simple barrier here, blocking your way through. One of the huge creatures stands guard here. It has a horn around its neck.";
	text2 = "When you get close, it bares its teeth in a sincerely felt display of dominance. Then it says, _Go! Turn back! Our land here. You go!_";
	text5 = "The lone battle beta still stands guard here. It snarls at you. _Go. Go back. Our land._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Tell me about your tribe.";
	text1 = "This question is a little abstract for the creature. It is very simple, and it doesn't have much of a grasp of the language. It just snarls at you.";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just let me by and nobody will get hurt.";
	text1 = "The stubborn creature seems oblivious to the senselessness of its position. _No. Go back. No pass!_";

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = get_stat(20) > 4;
	question = "I command you, creation. Stand aside.";
	text1 = "You use your most authoritative voice and try to command the creature. Its will wavers slightly, but that is all. It is completely rogue. You won't be able to control it.";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Fine. Prepare to die, rogue. (Attack.)";
	text1 = "The creature is completely fearless. It adopts the battle stance that the Shapers have written into its very being. Then it remembers something. It grabs its horn in its hand ...";
	action = END_TALK;
	code =
		set_attitude(32,10);
	break;
	
begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "All right. I'm going.";
	text1 = "The creature nods. _Yes. You go. I scare you. Go. No come back._";
	action = END_TALK;

begintalknode 20;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The battle beta raises a horn to its lips and blows. A long, low note echoes across the fen.";

	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Parl";
	text1 = "There are several serviles gathered around this campfire, trying to keep the damp and the chill of the Okavano at bay. There were a dock and some buildings here once. The dock is the only structure the war has not yet destroyed.";
	text2 = "The serviles are not loyal servants of the Shapers. Your approach makes them very nervous. Their leader rises to meet you. He is armed and powerfully muscled. His face bears a complex pattern of tattoos and ritual scars.";
	text3 = "He points a heavy broadsword at you and says, _I am Parl. We are soldiers. We are warriors of Kaz, to west. Shapers let us be here. I am not trying to be rude. You go. You let us be._";
	text5 = "Parl watches you anxiously, standing between you and his warriors. His sword is still out, but he seems calmer. He doesn't seem ready to attack you at any moment.";
	text6 = "You get a good look at the ritual markings on his face. Receiving them must have been exquisitely painful.";
	action = INTRO;
	code =
		toggle_quest(56,3);
	break;
	
begintalknode 31;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "Tell me about Kaz.";
	text1 = "He points to the west. _Servile colony. There. We are free serviles. We are not rogues. Councilor Astoria allows us. Does not fight us. We keep to selves. Keep safe. That is all._";

begintalknode 32;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "What do you think of Councilor Astoria?";
	text1 = "_She lets us be free. Because we are strong. She respects strength of creations. Other Shapers don't._";
	text2 = "_We of Kaz know that you are free if you are strong. You let be free if you can take being free._";

begintalknode 33;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Do you know anything about the Shadow Road?";
	text1 = "The serviles immediately get very tense. For all you know, some of them might have gotten here through the Shadow Road.";
	text2 = "_Know nothing. Nothing at all._";
	text3 = "_You servile, so I tell you. Leave Shadow Road alone. If it exist, is good thing. Leave alone._";
	code =
		if (creature_type(pc_num()) == 46) 
			rs(2);
			else rs(3);
	break;

begintalknode 34;
	state = 30;
	nextstate = 32;
	condition = 1;
	question = "Those are interesting marks on your face.";
	text1 = "He looks up, giving you a better view. He is clearly very proud of them. _Yes. Ritual marks. Marks of focus. Part of denial. Denial of self. I go far on path. But too weak to go farther._";

begintalknode 35;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Too weak?";
	text1 = "_There was only so much pain I could take. Very sad. Not proud._ The way he looks at you, he clearly thinks that he can still take far more pain than you.";

begintalknode 36;
	state = 32;
	nextstate = 33;
	condition = 1;
	question = "Marks of focus? Denial of self?";
	text1 = "_Is way of some free serviles. Before these days, when can learn magic. Can be warped with canisters into Shapers. Before these days, serviles had to find own paths to magic._";
	text2 = "";

begintalknode 37;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Through self-denial? Through pain?";
	text1 = "_Is the old way. Old magic. Sort humans did once, before they found better way. I tried that path when younger. Became strong, but not enough for power._";
	text2 = "_These days, serviles get magic easy way. Young are weak and lazy. Not like old days._";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = gf(17,7) == 0;
	question = "Why are you camped here?";
	text1 = "_Is private. Not what I would talk to you about._";

begintalknode 39;
	state = 30;
	nextstate = 34;
	condition = gf(17,7) == 1 && gf(31,3) == 0;
	question = "Celaa sent me here. I want to help you.";
	text1 = "The servile looks very skeptical. _We have own fight to do. We must clear out battle alphas. Alphas attack us. Steal ornks. We can manage. We do not want to fight with outsiders._";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = gf(31,3) > 0;
	question = "I am ready. Begin the attack.";
	text1 = "The serviles spring into action. While they don't entirely trust you, they are pleased to have someone armed and competent to help them with the assault. Parl says, _Come. Follow quickly. Do not fall behind. We attack fast, with surprise._";
	text2 = "Soon, they have gathered their weapons and are advancing across the fen.";
	action = END_TALK;
	code =
		sf(31,5,1);
	break;
	
begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "You are clearly rogues. You have to be destroyed.";
	text1 = "Parl is not surprised. _We knew this. We knew Shapers would betray us. We have to take our freedom. We will not surrender. Or flee. We will fight._";
	action = END_TALK;
	code =
		set_attitude(1001,10);
		inc_flag(100,0,3);
	break;
	
begintalknode 42;
	state = 34;
	nextstate = -1;
	condition = get_stat(20) < 8;
	question = "But I was sent here to help you!";
	text1 = "_We have pride. We do not want outsider help. To fight with one, must trust with your life. We do not trust you enough. I thank you. Now go. We are preparing._";
	action = END_TALK;

begintalknode 43;
	state = 34;
	nextstate = 30;
	condition = get_stat(20) >= 8;
	question = "You can trust me. I am no friend of the rebels, but I need your help to pass through this part of the swamp.";
	text1 = "Parl is skeptical, but you manage to be very convincing. He nods. _We have a common cause. I will let you fight by us. We begin soon. We attack the battle alpha camp._";
	text2 = "_Say when ready. Then we begin._";
	code =
		sf(31,3,1);
		award_party_xp(100,15);
		inc_flag(100,0,1);
	break;
	
begintalknode 44;
	state = 34;
	nextstate = 30;
	condition = get_stat(20) >= 8;
	question = "You can trust me. I am here to prove that I want to help the rebels.";
	text1 = "Parl is skeptical, but you manage to be very convincing. He nods. _We have a common cause. I will let you fight by us. We begin soon. We attack the battle alpha camp._";
	text2 = "_Say when ready. Then we begin._";
	code =
		sf(31,3,1);
		award_party_xp(100,15);
		inc_flag(100,0,-2);
	break;

begintalknode 45;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "I am leaving now.";
	text1 = "Parl nods. _We mean you no harm. Just move on._";
	action = END_TALK;

begintalknode 48;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "This servile warrior looks up at you skeptically and then points at their leader. _Talk to Parl. He commands here._";
	text2 = "Alas, being a servile is not earning you any extra trust here.";
	code =
		if (creature_type(pc_num()) != 46) 
			rs(2);
	break;

begintalknode 49;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The massive beta falls. Now that this colony of rogues has lost its leader, it will slowly dissolve.";
	text2 = "Now that victory has been won, the attack force turns and heads for home.";
	code =
		if ((num_chars_in_group(1) == 0) || (gf(31,3) == 0)) {
			rs(2);
			}
	break;
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "You encounter a group of servile warriors. They have arms and armor and are clearly trained in their use. They are definitely a force of rebel scouts. They have just packed up their camp and are marching to the north.";
	text2 = "When they see you, they stop. Some of them whisper to each other. When they see that you aren't attacking, they come to a decision. They march right by you without a word.";

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Wait! I want to talk to you.";
	text1 = "They ignore you. Perhaps they just want to avoid a fight. Or maybe word of you and your exploits has reached even this remote land.";
	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Die, rebels! (Attack.)";
	text1 = "They seem genuinely surprised when you draw your blade and charge them. They aren't off guard for long, though.";
	action = END_TALK;
	code =
		inc_flag(100,0,3);
		set_attitude(1003,10);
	break;
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Let them go.";
	text1 = "They quickly march off into the swamp. The thick layer of muck on their armor indicates that they have been out here for a while. They're eager to get back to base.";
	action = END_TALK;

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		